#ifndef CANVAS_H_
#define CANVAS_H_


#include <QGraphicsView>
#include <QPixmap>
#include <QImage>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QGraphicsSceneMouseEvent>
class Canvas : public QGraphicsScene
{

public:
	Canvas(){currentPixmap = NULL;};
	Canvas(QGraphicsPixmapItem*, QWidget* parent);
	~Canvas(){};
	void setScribbling(bool value){scribbling = value;}
	static QString currentTool;
	static void Canvas::setCurrentTool(QString);
	void setImage(QImage sourceImage);
	QImage getImage(){return theImage;}

public:
	bool scribbling;
	QGraphicsView gView;
	QGraphicsPixmapItem* currentPixmap;
	QImage theImage;
};


#endif